/*! 
* WeX5 v3 (http://www.justep.com) 
* Copyright 2015 Justep, Inc.
* Licensed under Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) 
*/ 
define(function(require) {
	var justep = require("$UI/system/lib/justep");
	var BizDesignComp = require("$UI/system/components/designerCommon/comp/bizDesignComp");
	var xuiService = require("$UI/system/components/designerCommon/js/xuiService");
	
    function create(comp, clz) {
		var $domNode = $(comp.domNode);
		var url =require.toUrl('./img/icon.png');
		$domNode.html("<div><img style = 'width:100%;' src='"+url+"'/></div>");
	}

	var _Designer = BizDesignComp.extend({
		files : {
		},
		isWX: true,
		compPath : "$UI/comp/wxxcx_login/components/wxxcx_login",
		init : function(value, bindingContext) {
            create(this, '');
			this.callParent(value, bindingContext);
		}
	});


	var webIdeEx = {
			"wxlogin:wxxcx_login":{
				styleConfig:function(designer){
    				return [ designer.getCommonStyleItem('pull'), designer.getCommonStyleItem('baseStyle'), designer.getCommonStyleItem('param'), designer.getCommonStyleItem('position') ];
				}
			}
	};
	
	var quickIdeEx = {
		regPropEditor : function(propEditorMng) {
		},
		"wxlogin:wxxcx_login":{
			properties : ["miniappLogin", "mpLogin"],
			events : [ 
            ],
			toolbar : [ ],
			displayName : function(config) {
				return "微信小程序登录";
			}
		}
	};
	
	return {
		webIdeEx:webIdeEx,
		quickIdeEx:quickIdeEx,
		'wxlogin:wxxcx_login' : _Designer 
	};
});
